<div class="wide form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'action' => app()->createUrl($this->route),
        'method' => 'get',
            ));
    ?>
    <?php echo $form->label($model, 'id'); ?> :
    <?php echo $form->textField($model, 'id', array('size' => 5)); ?>&nbsp;
    <?php echo $form->label($model, 'username'); ?>:
    <?php echo $form->textField($model, 'username', array('size' => 32, 'maxlength' => 32)); ?>&nbsp;
    <?php echo CHtml::submitButton('搜索'); ?>
    <?php $this->endWidget(); ?>
</div>